package ccy.ccykills.playerdata;

import ccy.ccylibrary.data.PlayerDataS;
import ccy.ccykills.config.CcyConfig;
import org.bukkit.entity.Player;
import java.util.List;

public class PlayerData {
    private final PlayerDataS data;

    public PlayerData(Player player) {
        this.data = CcyConfig.config.data.getPlayerSql(player);
    }

    public void setNum(int value) {
        this.data.setValue("num", value);
    }

    public int getNum() {
        return this.data.getInt("num");
    }

    public List<String> getGift() {
        return this.data.getStringList("gift");
    }

    public void setGift(List<String> list) {
        this.data.setValue("gift", list);
    }
}
